<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SP_Sales</title>
    <link rel="stylesheet" href="/static/css/layui.css">
</head>
<style type="text/css">
.head{
        width: 50%;
    text-align: center;
}
body{
    height: 100%;
    text-align: center;
}
    #center{
        margin-top: 10%;
        font-size: 3rem;
        color: #1E9FFF;
    }
</style>
<body class="layui-bg-cyan" >


<div id="center" >
    <i class="layui-icon layui-icon-loading layui-anim-loop" style="font-size: 10rem"></i><br/>
    在指定窗口操作
<br>
    Operation in the window
    <br/>
    %if not state:
    <p>数据库没有连上 先修吧!</p>
    %else:
    <p>数据库连接成功!</p>
    <button onclick="new_win()" class="layui-btn layui-btn-normal">Go test</button>
    %end
</div>


</body>

<script>

function new_win(){

 window.open(
        '/index', '_blank', 'height=800, width=700 ')
}

</script>
</html>